package com.seh.contentcenter.service;

import com.seh.contentcenter.dto.DeliverDTO;
import com.seh.contentcenter.entity.Deliver;

import java.util.List;

public interface DeliverService {
    //查询所有外送订单信息
    List<DeliverDTO> findAllDeliverInfo(Integer pageIndex);
    //查看某一跑腿外送订单详情
    DeliverDTO selectOneById(Integer deliverId);
    //发布代取任务
    String addNewDeliver(Deliver deliver);
    //删除代取任务
    String deleteDeliver(Integer deliverId);
    //查看某一用户发布的跑腿信息
    List<DeliverDTO> findAllDeliverByUserId(Integer userId, Integer pageIndex);
    //根据地址查询跑腿订单
    List<DeliverDTO> findAllDeliverByAddress(String addressName, String receiveName,
                                             String price, String publishTime, Integer pageIndex);
    //查看某一用户的代取信息
    List<DeliverDTO> findAllDeliverUserDo(Integer userId, Integer pageIndex);
    //查看某一用户被代取的信息
    List<DeliverDTO> findAllDeliverUserBy(Integer issuerId, Integer pageIndex);
    //用户代取跑腿
    String updateDeliver(Integer deliverId, Integer userId);
    //确认跑腿完成
    String updateDeliverDone(Integer deliverId);

}
